<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for views/index/index.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="../../prettify.css" />
    <link rel="stylesheet" href="../../base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(../../sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="../../index.html">All files</a> / <a href="index.html">views/index</a> index.vue
    </h1>
    <div class='clearfix'>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div&gt;
    &lt;div v-if="isPay != true" class="pay"&gt;
      &lt;label class="overdue"
        &gt;您的插件已过期，请选择下面的套餐重新购买使用！&lt;/label
      &gt;
      &lt;button @click="payMent('codeAutoYear')"&gt;购买1年&lt;/button&gt;
      &lt;button @click="payMent('codeAutoMonth')"&gt;购买1月&lt;/button&gt;
      &lt;button @click="payMent('codeAutoDay')"&gt;购买1天&lt;/button&gt;
    &lt;/div&gt;
    &lt;div v-else&gt;
      &lt;el-container&gt;
        &lt;el-header&gt;Header&lt;/el-header&gt;
        &lt;el-main&gt;Main&lt;/el-main&gt;
      &lt;/el-container&gt;
&nbsp;
      &lt;el-container&gt;
        &lt;el-header&gt;Header&lt;/el-header&gt;
        &lt;el-main&gt;Main&lt;/el-main&gt;
        &lt;el-footer&gt;Footer&lt;/el-footer&gt;
      &lt;/el-container&gt;
&nbsp;
      &lt;el-container&gt;
        &lt;el-aside width="200px"&gt;Aside&lt;/el-aside&gt;
        &lt;el-main&gt;Main&lt;/el-main&gt;
      &lt;/el-container&gt;
&nbsp;
      &lt;el-container&gt;
        &lt;el-header&gt;Header&lt;/el-header&gt;
        &lt;el-container&gt;
          &lt;el-aside width="200px"&gt;Aside&lt;/el-aside&gt;
          &lt;el-main&gt;Main&lt;/el-main&gt;
        &lt;/el-container&gt;
      &lt;/el-container&gt;
&nbsp;
      &lt;el-container&gt;
        &lt;el-header&gt;Header&lt;/el-header&gt;
        &lt;el-container&gt;
          &lt;el-aside width="200px"&gt;Aside&lt;/el-aside&gt;
          &lt;el-container&gt;
            &lt;el-main&gt;Main&lt;/el-main&gt;
            &lt;el-footer&gt;Footer&lt;/el-footer&gt;
          &lt;/el-container&gt;
        &lt;/el-container&gt;
      &lt;/el-container&gt;
&nbsp;
      &lt;el-container&gt;
        &lt;el-aside width="200px"&gt;Aside&lt;/el-aside&gt;
        &lt;el-container&gt;
          &lt;el-header&gt;Header&lt;/el-header&gt;
          &lt;el-main&gt;Main&lt;/el-main&gt;
        &lt;/el-container&gt;
      &lt;/el-container&gt;
&nbsp;
      &lt;el-container&gt;
        &lt;el-aside width="200px"&gt;Aside&lt;/el-aside&gt;
        &lt;el-container&gt;
          &lt;el-header&gt;Header&lt;/el-header&gt;
          &lt;el-main&gt;Main&lt;/el-main&gt;
          &lt;el-footer&gt;Footer&lt;/el-footer&gt;
        &lt;/el-container&gt;
      &lt;/el-container&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;style&gt;
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}
&nbsp;
.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}
&nbsp;
.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 160px;
}
&nbsp;
body &gt; .el-container {
  margin-bottom: 40px;
}
&nbsp;
.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}
&nbsp;
.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
&lt;/style&gt;
&lt;script&gt;
// 定义商品id
<span class="cstat-no" title="statement not covered" >const goods = {</span>
  codeAutoDay: 'e9cfe6d15fad52b807eb5c8a3a0c4ba6',
  codeAutoMonth: '4694f055052d384fe07d1d4e4849542f',
  codeAutoYear: 'ef1ce46632c17e8fb8b305b1c715bd16'
}
export default {
  name: 'app',
<span class="fstat-no" title="function not covered" >  data () {</span>
<span class="cstat-no" title="statement not covered" >    return {</span>
      isPay: true
    }
  },
<span class="cstat-no" title="statement not covered" ><span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >  async created () {</span></span></span>
    //    获取用户所有购买的
<span class="cstat-no" title="statement not covered" ><span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >    await this.$utools.onPluginReady(async () =&gt; {</span></span></span>
<span class="cstat-no" title="statement not covered" >      console.log('插件装配完成，已准备好')</span>
&nbsp;
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >      await this.$utools.onPluginEnter(async ({ code, type, payload }) =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >        console.log('用户进入插件', code, type, payload)</span>
<span class="cstat-no" title="statement not covered" >        var isPay = await this.havePay()</span>
<span class="cstat-no" title="statement not covered" >        if (isPay == true) {</span>
<span class="cstat-no" title="statement not covered" >          this.isPay = true</span>
        } else {
<span class="cstat-no" title="statement not covered" >          this.isPay = false</span>
        }
      })
    })
&nbsp;
    // await this.$utools.openPayment({ goodsId: goods.codeAuto }, () =&gt; {
    //   // 用户完成支付，继续业务代码
    // });
  },
  methods: {
<span class="cstat-no" title="statement not covered" ><span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >    async payMent (model) {</span></span></span>
      await this.$utools.openPayment({ goodsId: goods[model] }, () =&gt; {
        // 用户完成支付，继续业务代码
      })
    },
    /* 获取上一个月
     *
     *  @date 格式为yyyy-mm-dd的日期，如：2014-01-25
     */
<span class="fstat-no" title="function not covered" >    getPreMonth (date) {</span>
<span class="cstat-no" title="statement not covered" >      date = this.DateToStr(date)</span>
<span class="cstat-no" title="statement not covered" >      var dateDay = date.split(' ')</span>
<span class="cstat-no" title="statement not covered" >      var arr = dateDay[0].split('-')</span>
<span class="cstat-no" title="statement not covered" >      var year = arr[0] // 获取当前日期的年份</span>
<span class="cstat-no" title="statement not covered" >      var month = arr[1] // 获取当前日期的月份</span>
<span class="cstat-no" title="statement not covered" >      var day = arr[2] // 获取当前日期的日</span>
      // var days = new Date(year, month, 0)
      // days = days.getDate() // 获取当前日期中月的天数
<span class="cstat-no" title="statement not covered" >      var year2 = year</span>
<span class="cstat-no" title="statement not covered" >      var month2 = parseInt(month) - 1</span>
<span class="cstat-no" title="statement not covered" >      if (month2 == 0) {</span>
<span class="cstat-no" title="statement not covered" >        year2 = parseInt(year2) - 1</span>
<span class="cstat-no" title="statement not covered" >        month2 = 12</span>
      }
<span class="cstat-no" title="statement not covered" >      var day2 = day</span>
<span class="cstat-no" title="statement not covered" >      var days2 = new Date(year2, month2, 0)</span>
<span class="cstat-no" title="statement not covered" >      days2 = days2.getDate()</span>
<span class="cstat-no" title="statement not covered" >      if (day2 &gt; days2) {</span>
<span class="cstat-no" title="statement not covered" >        day2 = days2</span>
      }
<span class="cstat-no" title="statement not covered" >      if (month2 &lt; 10) {</span>
<span class="cstat-no" title="statement not covered" >        month2 = '0' + month2</span>
      }
<span class="cstat-no" title="statement not covered" >      var t2 = year2 + '-' + month2 + '-' + day2</span>
<span class="cstat-no" title="statement not covered" >      if (dateDay[1]) {</span>
<span class="cstat-no" title="statement not covered" >        t2 = t2 + ' ' + dateDay[1]</span>
      }
<span class="cstat-no" title="statement not covered" >      return t2</span>
    },
    /* 获取上一年
     *
     *  @date 格式为yyyy-mm-dd的日期，如：2014-01-25
     */
<span class="fstat-no" title="function not covered" >    getPreYear (date) {</span>
<span class="cstat-no" title="statement not covered" >      date = this.DateToStr(date)</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >      var dateDay = date.split(' ')</span>
<span class="cstat-no" title="statement not covered" >      var arr = dateDay[0].split('-')</span>
<span class="cstat-no" title="statement not covered" >      var year = arr[0] // 获取当前日期的年份</span>
<span class="cstat-no" title="statement not covered" >      var month = arr[1] // 获取当前日期的月份</span>
<span class="cstat-no" title="statement not covered" >      var day = arr[2] // 获取当前日期的日</span>
      // var days = new Date(year, month, 0)
      // days = days.getDate() // 获取当前日期中月的天数
<span class="cstat-no" title="statement not covered" >      var year2 = year</span>
<span class="cstat-no" title="statement not covered" >      var month2 = parseInt(month)</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >      year2 = parseInt(year2) - 1</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >      var day2 = day</span>
<span class="cstat-no" title="statement not covered" >      var days2 = new Date(year2, month2, 0)</span>
<span class="cstat-no" title="statement not covered" >      days2 = days2.getDate()</span>
<span class="cstat-no" title="statement not covered" >      if (day2 &gt; days2) {</span>
<span class="cstat-no" title="statement not covered" >        day2 = days2</span>
      }
<span class="cstat-no" title="statement not covered" >      if (month2 &lt; 10) {</span>
<span class="cstat-no" title="statement not covered" >        month2 = '0' + month2</span>
      }
<span class="cstat-no" title="statement not covered" >      var t2 = year2 + '-' + month2 + '-' + day2</span>
<span class="cstat-no" title="statement not covered" >      if (dateDay[1]) {</span>
<span class="cstat-no" title="statement not covered" >        t2 = t2 + ' ' + dateDay[1]</span>
      }
<span class="cstat-no" title="statement not covered" >      return t2</span>
    },
    // 比较两个时间的大小
<span class="fstat-no" title="function not covered" >    bjDate (date, date1) {</span>
<span class="cstat-no" title="statement not covered" >      date = new Date(date)</span>
<span class="cstat-no" title="statement not covered" >      date1 = new Date(date1)</span>
<span class="cstat-no" title="statement not covered" >      if (date.getTime() - date1.getTime() &lt; 0) {</span>
<span class="cstat-no" title="statement not covered" >        return false</span>
      } else {
<span class="cstat-no" title="statement not covered" >        return true</span>
      }
    },
    // 日期转字符串格式
<span class="fstat-no" title="function not covered" >    DateToStr (date) {</span>
<span class="cstat-no" title="statement not covered" >      date = new Date(date)</span>
<span class="cstat-no" title="statement not covered" >      var year = date.getFullYear() // 年</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >      var month = date.getMonth() // 月</span>
<span class="cstat-no" title="statement not covered" >      var day = date.getDate() // 日</span>
<span class="cstat-no" title="statement not covered" >      var hours = date.getHours() // 时</span>
<span class="cstat-no" title="statement not covered" >      var min = date.getMinutes() // 分</span>
<span class="cstat-no" title="statement not covered" >      var second = date.getSeconds() // 秒</span>
<span class="cstat-no" title="statement not covered" >      return (</span>
        year +
        '-' +
        (month + 1 &gt; 9 ? month + 1 : '0' + (month + 1)) +
        '-' +
        (day &gt; 9 ? day : '0' + day) +
        ' ' +
        (hours &gt; 9 ? hours : '0' + hours) +
        ':' +
        (min &gt; 9 ? min : '0' + min) +
        ':' +
        (second &gt; 9 ? second : '0' + second)
      )
    },
&nbsp;
<span class="cstat-no" title="statement not covered" ><span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >    async havePay () {</span></span></span>
<span class="cstat-no" title="statement not covered" >      let that = this</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >      await this.$utools.fetchUserPayments().then(async (ret) =&gt; {</span></span>
        // 判断如果存在支付记录则继续相关业务
<span class="cstat-no" title="statement not covered" >        ret = [</span>
          {
            order_id: 'ZsVSwEDoR7PPs6vWdAGplEpEpNjn8xb4', // utools 订单号
            out_order_id: '', // 外部订单号
            open_id: 'a331127d654761ac91d086b942aae7b6', // uTools 用户 ID, 对于此插件不变且唯一
            pay_fee: 1, // 支付金额（分）
            body: '会员1年', // 支付内容
            attach: '', // 附加数据
            goods_id: '6n193s7P95p9gA13786YkwQ5oxHpVW4f', // 商品 ID
            paid_at: '2021-06-18 16:55:26', // 支付时间
            created_at: '2021-06-18 16:55:11' // 订单生成时间
          },
          {
            order_id: 'ZsVSwEDoR7PPs6vWdAGplEpEpNjn8xb4', // utools 订单号
            out_order_id: '', // 外部订单号
            open_id: 'a331127d654761ac91d086b942aae7b6', // uTools 用户 ID, 对于此插件不变且唯一
            pay_fee: 1, // 支付金额（分）
            body: '会员1年', // 支付内容
            attach: '', // 附加数据
            goods_id: 'ef1ce46632c17e8fb8b305b1c715bd16', // 商品 ID
            paid_at: '2020-10-18 16:55:26', // 支付时间
            created_at: '2021-011-18 16:55:11' // 订单生成时间
          }
        ]
&nbsp;
        // var sdtime4 = new Date().setMonth(new Date().getMonth() - 1);
        // var sdtime4 = "2020-02-29 16:55:11";
&nbsp;
        // var sdtime4 = new Date(sdtime4).setMonth(
        //   new Date(sdtime4).getMonth() - 1
        // );
        // console.log(new Date(sdtime4).getMonth());
        // console.log(sdtime4);
&nbsp;
        // console.log(this.getPreMonth(sdtime4));
        // const goods = {
        //   codeAutoDay: "e9cfe6d15fad52b807eb5c8a3a0c4ba6",
        //   codeAutoMonth: "4694f055052d384fe07d1d4e4849542f",
        //   codeAutoYear: "ef1ce46632c17e8fb8b305b1c715bd16",
        // };
        // console.log(this.getPreYear(sdtime4));
<span class="cstat-no" title="statement not covered" >        that.isPay = false</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        ret.forEach((element, i) =&gt; {</span></span>
          //    如果购买年套餐，时间差不大于1年，则通过
          //   console.log(
          //     goods.codeAutoYear == element.goods_id &amp;&amp;
          //       this.bjDate(element.paid_at, this.getPreYear(new Date()))
          //   );
<span class="cstat-no" title="statement not covered" >          if (</span>
            goods.codeAutoYear == element.goods_id &amp;&amp;
            this.bjDate(element.paid_at, this.getPreYear(new Date()))
          ) {
<span class="cstat-no" title="statement not covered" >            that.isPay = true</span>
          }
          //    如果购买月套餐，时间差不大于1月，则通过
<span class="cstat-no" title="statement not covered" >          if (</span>
            goods.codeAutoMonth == element.goods_id &amp;&amp;
            this.bjDate(element.paid_at, this.getPreMonth(new Date()))
          ) {
<span class="cstat-no" title="statement not covered" >            that.isPay = true</span>
          }
&nbsp;
          //    如果购买日套餐，时间差不大于1天，则通过
<span class="cstat-no" title="statement not covered" >          if (</span>
            goods.codeAutoMonth == element.goods_id &amp;&amp;
            this.bjDate(
              element.paid_at,
              new Date().setDate(new Date().getDate() - 1)
            )
          ) {
<span class="cstat-no" title="statement not covered" >            that.isPay = true</span>
          }
        })
      })
      return that.isPay
    }
  },
<span class="fstat-no" title="function not covered" >  mounted: function () {},</span>
  components: {}
}
&lt;/script&gt;
&nbsp;
&lt;style&gt;
/*#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 5px;
}*/
&lt;/style&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sat Nov 20 2021 13:56:43 GMT+0800 (China Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="../../sorter.js"></script>
</body>
</html>
